{$pagelist_css}
<!--{include file=profile/submenu}-->

<style type="text/css">
    html{_overflow-y:scroll}
</style>

<div class="pad_10">

<div class="explain-col">
    <form name="selectform" action="" method="get">
    <input type="hidden" value="{$page_id}" name="page">
    <select name="audit">
        <option value='all'{if $select['audit'] == 'all'} selected{/if}>审核状态</option>
        <option value="1"{if $select['audit'] == '1'} selected{/if}>已审核</option>
        <option value="0"{if $select['audit'] == '0'} selected{/if}>未审核</option>
    </select>
    <input type="submit" class="button" name="submit" value="筛选" />
    </form>
</div>

<div class="bk10"></div>

<form name="actform" action="{$base_url}profile/delete" method="post" onsubmit="checkuid();return false;">
<div class="table-list">
    <table width="100%" cellspacing="0">
        <thead>
            <tr>
                <th align="left" width="20"><input type="checkbox" value="" id="check_box" onclick="selectall('user_id[]');"></th>
                <th width="30">编号</th>
                <th align="left">登录名</th>
                <th align="left">真实姓名</th>
                <th align="left">单位名称</th>
                <th align="left">单位省份</th>
                <th align="left">单位等级</th>
                <th align="left">联系电话</th>
                <th align="left">单位地址</th>
                <th align="left">E-mail</th>
                <th align="center">审核状态</th>
                <th width="100">管理操作</th>
            </tr>
        </thead>
        <tbody>
            {foreach from=$data as key=k item=v}
            <tr>
                <td align="left"><input type="checkbox" value="{$v.user_id}" name="user_id[]"></td>
                <td align='center'>{$v.user_id}</td>
                <td>{$v.username}</td>
                <td>{$v.nickname}</td>
                <td>{$v.company_name}</td>
                <td>{$v.company_province}</td>
                <td>{$v.company_level}</td>
                <td>{$v.company_phone}</td>
                <td>{$v.address}</td>
                <td>{$v.email}</td>
                <td align='center'>{if $v.audit == 0}<span style="color:red;">锁定</span>{else}<span style="color:green;">正常</span>{/if}</td>
                <td align='center'>
                    <a href="{$base_url}profile/modify/user_id/{$v.user_id}">修改</a> |  
                    <a href="javascript:confirmurl('{$base_url}profile/delete/user_id/{$v.user_id}', '确认要删除 [{$v.username}] 的信息和他有关的病例数据？');">删除</a>
                </td>
            </tr>
            {/foreach}
            </tbody>
    </table>
    
    <div class="btn">
        <label for="check_box">全选/取消</label>
	    <input type="submit" class="button" name="dosubmit" value="删除" onclick="return confirm('您确定要删除吗？');" />
        <input type="submit" class="button" name="dosubmit" onclick="document.actform.action='{$base_url}profile/index/lock/true'" value="正常"/>
        <input type="submit" class="button" name="dosubmit" onclick="document.actform.action='{$base_url}profile/index/lock/false'" value="锁定"/>
    </div>

    {$pagelist_html}

</div>
</div>
</div>
</form>

<script language="JavaScript">
<!--
function checkuid() 
{
	var ids='';
	$("input[name='user_id[]']:checked").each(function(i, n) {
		ids += $(n).val() + ',';
	});
	if(ids=='') {
		window.top.art.dialog({content:'请选择用户名',lock:true,width:'200',height:'50',time:1.5},function(){});
		return false;
	} else {
		actform.submit();
	}
}
window.top.$('#display_center_id').css('display','none');
//-->
</script>
